﻿using System.Collections.Generic;
using Dost.Khcn.Data.EntityModel;

namespace Dost.Khcn.Data.Interfaces
{
    public interface ILinhVucDao
    {
        #region LinhVuc

        List<LinhVuc> GetLinhVucs(int startIndex, int pageSize, string sorting, string name, int nhomLinhVucId, string code, out int totalRecords);
        List<LinhVuc> GetAll(int? nhomLinhVucId);
        LinhVuc AddLinhVuc(LinhVuc linhVuc);
        LinhVuc GetById(int id);
        void UpdateLinhVuc(LinhVuc linhVuc);
        void DeleteLinhVuc(int id);

        #endregion

        #region NhomLinhVuc

        List<NhomLinhVuc> GetAllNhomLinhVucs();
        List<NhomLinhVuc> GetNhomLinhVucs(int startIndex, int pageSize, string sorting, string name, string code, out int totalRecords);
        NhomLinhVuc AddNhomLinhVuc(NhomLinhVuc nhomLinhVuc);
        void UpdateNhomLinhVuc(NhomLinhVuc nhomLinhVuc);
        void DeleteNhomLinhVuc(int id);

        #endregion
    }
}
